/**
 * 
 */
package com.hfjyz.examination.command;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

import com.hfjyz.examination.domain.Question;
import com.hfjyz.examination.domain.QuestionCategory;

/**
 *
 */
public class CategoryEditCommand implements Serializable {
	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = -6102476111296475795L;

	private QuestionCategory category;

	public CategoryEditCommand() {
		this.category = new QuestionCategory();
	}

	public CategoryEditCommand(QuestionCategory category) {
		this.category = category;
	}

	/**
	 * @return the category
	 */
	public QuestionCategory getCategory() {
		return category;
	}

	/**
	 * @param category
	 *            the category to set
	 */
	public void setCategory(QuestionCategory category) {
		this.category = category;
	}

	/**
	 * @return
	 * @see com.hfjyz.examination.domain.QuestionCategory#getId()
	 */
	public Long getId() {
		return category.getId();
	}

	/**
	 * @param id
	 * @see com.hfjyz.examination.domain.QuestionCategory#setId(java.lang.Long)
	 */
	public void setId(Long id) {
		category.setId(id);
	}

	/**
	 * @return
	 * @see com.hfjyz.examination.domain.QuestionCategory#getVersion()
	 */
	public int getVersion() {
		return category.getVersion();
	}

	/**
	 * @param version
	 * @see com.hfjyz.examination.domain.QuestionCategory#setVersion(int)
	 */
	public void setVersion(int version) {
		category.setVersion(version);
	}

	/**
	 * @return
	 * @see com.hfjyz.examination.domain.QuestionCategory#getName()
	 */
	public String getName() {
		return category.getName();
	}

	/**
	 * @param name
	 * @see com.hfjyz.examination.domain.QuestionCategory#setName(java.lang.String)
	 */
	public void setName(String name) {
		category.setName(name);
	}

	/**
	 * @return
	 * @see com.hfjyz.examination.domain.QuestionCategory#getStatus()
	 */
	public String getStatus() {
		return category.getStatus();
	}

	/**
	 * @param status
	 * @see com.hfjyz.examination.domain.QuestionCategory#setStatus(java.lang.String)
	 */
	public void setStatus(String status) {
		category.setStatus(status);
	}

	/**
	 * @return
	 * @see com.hfjyz.examination.domain.QuestionCategory#getRemark()
	 */
	public String getRemark() {
		return category.getRemark();
	}

	/**
	 * @param remark
	 * @see com.hfjyz.examination.domain.QuestionCategory#setRemark(java.lang.String)
	 */
	public void setRemark(String remark) {
		category.setRemark(remark);
	}

	/**
	 * @return
	 * @see com.hfjyz.examination.domain.QuestionCategory#getCdate()
	 */
	public Date getCdate() {
		return category.getCdate();
	}

	/**
	 * @param cdate
	 * @see com.hfjyz.examination.domain.QuestionCategory#setCdate(java.util.Date)
	 */
	public void setCdate(Date cdate) {
		category.setCdate(cdate);
	}

	/**
	 * @return
	 * @see com.hfjyz.examination.domain.QuestionCategory#getQuestions()
	 */
	public Set<Question> getQuestions() {
		return category.getQuestions();
	}

	/**
	 * @param questions
	 * @see com.hfjyz.examination.domain.QuestionCategory#setQuestions(java.util.Set)
	 */
	public void setQuestions(Set<Question> questions) {
		category.setQuestions(questions);
	}
}
